from google.appengine.api import users

class Page:
    def __init__(self, heading, link, newRow = False):
        self.heading = heading
        self.link = link
        self.row = newRow

class PageDir:
    def __init__(self, text, link):
        self.link = link
        self.text = text

class MyUser:
    def __init__(self):
        user = users.get_current_user()
        if user:
            self.canEdit = (user.nickname() == "thomas.the.red")
            self.name = user.nickname()
            self.isLoggedIn = True
        else:
            self.canEdit = False
            self.name = ""
            self.isLoggedIn = False
